using Microsoft.SqlServer.Management.Sdk.Sfc;
using System;

namespace Microsoft.SqlServer.Management.SqlManagerUI.Scripting
{
	public static class ObjectsWithDependencies
	{
		public static bool CanDiscoverDependencies(Urn sourceObject)
		{
			string type;
			switch (type = sourceObject.Type)
			{
			case "Table":
			case "UserDefinedFunction":
			case "View":
			case "StoredProcedure":
			case "Default":
			case "Rule":
			case "Trigger":
			case "UserDefinedAggregate":
			case "Synonym":
			case "UserDefinedDataType":
			case "XmlSchemaCollection":
			case "UserDefinedType":
			case "SqlAssembly":
			case "PartitionScheme":
			case "PartitionFunction":
				return true;
			}
			return false;
		}
	}
}
